package com.example.light.web.meeting.dao;

import com.example.light.web.meeting.entity.OaMeetAttendee;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OaMeetAttendeeMapper {
    int deleteByPrimaryKey(Integer meetAttendeeId);

    int insert(OaMeetAttendee record);

    int insertSelective(OaMeetAttendee record);

    OaMeetAttendee selectByPrimaryKey(Integer meetAttendeeId);

    int updateByPrimaryKeySelective(OaMeetAttendee record);

    int updateByPrimaryKey(OaMeetAttendee record);

    void insertMeetAttendee(List<OaMeetAttendee> attendee);

    List<OaMeetAttendee> selectAttendeesByMeetId(Integer meetId);

    /**
     * @author lizhilong
     * @date 2018/9/3 14:58
     * @param meetId 需要修改的会议Id
     * @param attendeesId 会议参与者Id数组
     * @description: 通过meetId删除参与者
     */
    void deleteMeetAttendee(@Param("meetId")Integer meetId, @Param("attendeesId")Integer[] attendeesId);

}